﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Common;
namespace Ex01
{
    /// <summary>
    /// Project strategies:Object Initializer
    /// </summary>
    class Program
    {
        static void Main(string[] args)
        {
            var names = new[] { "Tom", "Dick", "Harry", "Mary", "Jay" }.AsQueryable();

            IEnumerable<TempProjectionItem> temp =
                from n in names
                select new TempProjectionItem
                {
                    Original = n,
                    Vowelless = n.Replace("a", "").Replace("e", "").Replace("i", "").Replace("o", "").Replace("u", "")
                };

            temp.Dump();
            Console.ReadKey();

        }
       
    }
    class TempProjectionItem
    {
        public string Original;      // Original name
        public string Vowelless;   // Vowel-stripped name
        public override string ToString()
        {
            return "Orininal:"+Original+",Vowelless:"+Vowelless+"\n";
        }
    }
}
